package com.spring.cloud.service;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class HelloSenderA {

//    @Resource
//    private AmqpTemplate rabbitTemplate;

    public void send(){
        String sendMsg = "helloA"+new Date();
        System.out.println("SenderA: "+ sendMsg);
//        this.rabbitTemplate.convertAndSend("SPRING_CLOUD_MQ_HELLO_QUEUE",sendMsg);
    }
}
